{% extends '::base.html.twig' %} 
{% block module_name %}Conceptos{% endblock %}
{% block title %}Conceptos{% endblock %}
{% block body %}
<h2>Listado</h2>
<div class="widget_inside">
    <table class="regular datatables">
        <thead>
            <tr>           
                <th>Nombre</th>     
                <th>Abreviatura</th>
                <th>Tipo de Concepto</th>
                <th>Activo</th> 
                <th class="acciones">Acciones</th>
            </tr>
        </thead>
        <tbody>
        {% for entity in entities %}
            <tr>
                <td>{{ entity.nombre }}</td>     
                <td>{{ entity.abreviatura }}</td>    
                <td>{{ entity.idTipoConcepto.nombre }}</td>    
                <td>{% if entity.activo == 1 %}Si{%else%}No{%endif%}</td>           
                <td>
                    <div class="acciones">
                        <select class="actions">
                            <option value="">- Seleccione -</option>    
                            <option value="{{ path('conceptos_show', { 'id': entity.id }) }}">Mas Informaci&oacute;n</option>    
                            <option value="{{ path('conceptos_edit', { 'id': entity.id }) }}">Editar</option>              
                        </select>
                    </div>
                </td>           
            </tr>
        {% endfor %}
        </tbody>
    </table>
    <div class="margin_top_15 right">
        <a href="{{ path('conceptos_new') }}" class="blue button">Agregar</a>
    </div>
</div>
{% endblock %}